import React, { Component } from 'react';

class Deaflue extends Component {
    // 有值没onChange的情况
    /* index.js:1 Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`. */
    // 值为null的情况
    /* index.js:1 Warning: `value` prop on `input` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components. */
    // 值为undefined的情况相当于什么都没做
    state = {

    }
    render() {
        return (
            <div>
                <input type="text" value={undefined} />
            </div>
        );
    }
}

export default Deaflue;